package com.ruoyi.web.controller.report;

import com.ruoyi.collectQuery.domain.HouseCollectQueryT;
import com.ruoyi.collectQuery.service.IHouseCollectQueryTService;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.purposeChart.domain.PurposeChartT;
import com.ruoyi.purposeChart.service.IPurposeChartTService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * 返还Controller
 * 
 * @author lijie
 * @date 2023-05-04
 */
@RestController
@RequestMapping("/report/purposeChart")
public class PurposeChartTController extends BaseController
{
    @Autowired
    private IPurposeChartTService purposeChartTService;

    /**
     * 查询返还列表
     */
    @GetMapping("/list")
    public TableDataInfo list()
    {
        startPage();
        List<PurposeChartT> list = purposeChartTService.selectPurposeChartTList();
        return getDataTable(list);
    }

}
